/**
  * Copyright 2019 bejson.com 
  */
package com.xingkeduo.dto.transter.commentfinish;

import com.xingkeduo.pojo.enums.CommentFinish;
import lombok.Data;

@Data
public class Commentfinish {

    private int error;
    private Object reason;
    private ContentCommentFinsh content;

    public void covert(CommentFinish commentFinish) {
        this.error=commentFinish.getKey();
        this.reason=commentFinish.getValue();
        this.content=new ContentCommentFinsh();
    }

    public void fill(ContentCommentFinsh contentCommentFinsh) {
        this.error=0;
        this.reason=0;
        this.content=contentCommentFinsh;
    }
}